﻿using System.ComponentModel.DataAnnotations;

namespace Entities
{
    [MetadataType(typeof(BotRecipientMeta))]
    public partial class BotRecipient
    {
    }

    public class BotRecipientMeta
    {
        [Required]
        public string RecipientName { get; set; }

        [Required]
        [RegularExpression(@"[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}", ErrorMessage = "Email address is not valid")]
        public string RecipientEmail { get; set; }
    }
}